<template>
  <div class="login-item">
    <form>
      <Input v-model="value.codeOrPwd" type="password" password class="form-input" placeholder="请输入密码" />
    </form>
  </div>
</template>

<script>
  export default {
    props: {
      value: {
        type: Object,
        default: () => {}
      }
    },
    data() {
      return {}
    },
    methods: {}
  }
</script>
<style lang="scss" scoped>
  .login-item {
    margin-bottom: 5%;

    > label {
      color: #333333;
      display: inline-block;
      margin-bottom: 3%;
    }

    > div {
      height: 100%;
      display: flex;
      align-items: center;
    }

    .role-menu {
      width: 140px;
      height: 25px;
      line-height: 25px;
      border-left: 1px solid #eee;
      background-color: #f6f6f8;

      :deep(.ivu-dropdown-rel) {
        margin: 0;
        padding: 0 10px 0 16px;
        width: 140px;
      }

      :deep(.ivu-dropdown-item) {
        width: 140px;
      }
    }

    .form-input {
      flex: 1;
    }

    .role-label {
      display: flex;
      justify-content: space-between;
      height: 36px;
      // line-height: 36px;
    }

    .code-img {
      width: 120px;
      height: 100%;
      margin-left: 16px;
      background-color: #fff;
      border: 1px solid #eee;
      cursor: pointer;
      display: inherit;
      box-sizing: content-box;
      image {
        max-width: 100%;
        max-height: 100%;
      }
    }
  }

  :deep(.ivu-input) {
    height: 50px;
    padding-left: 12px;
    border: none;
    box-shadow: none;
    background-color: #f6f6f8;
  }

  :deep(.ivu-input-suffix) i {
    line-height: 50px;
  }
</style>
